/**
 * User: Ngannv
 * Date: 9/17/11
 * Email : ngankt2@gmail.com
 */
/**
 * requrie jquery-ui.js, jquery.js > 1.4
 * @param class_selector
 */
function isInputChecked(class_selector) {

    var flag = false;
    $(class_selector).each(function() {
        if ($(this).attr("checked") == true) {
            flag = true;
        }
    });
    return flag;
}

/**
 * requrie jquery-ui.js, jquery.js > 1.4
 * @param data
 * @param width
 */
function view_template(data, width) {
    if (width == null || !width) {
        width = "900";
    }
    jQuery('body').block({message: jQuery(join('<div id="popup_join">' + data + '</div>')())  ,
        overlayCSS: {
            opacity: 0.9,
            background:'#000000'
        },
        centerY    : false,
        css: {
            top:  pTop + 'px',
            border: 'none',
            width : width + 'px',
            'background-color' : 'transparent'
        }});
}
function closePopup() {
    jQuery.unblockUI();
}